package cn.szsys.integration.dto;

import cn.szsys.integration.constants.EconomicCapabilityConstant;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Ryan
 * @since 2025-04-24
 **/
@Data
public class EconomicCapabilityDTO implements Serializable {
    /**
     * com_fin_capacity_00、fin_capacity_01、fin_capacity_02
     */
    @NotBlank
    @Pattern(regexp = "^" + EconomicCapabilityConstant.CODE_FIN_CAPACITY_00 + "|" +
            EconomicCapabilityConstant.CODE_FIN_CAPACITY_01 + "|" +
            EconomicCapabilityConstant.CODE_FIN_CAPACITY_02 + "|" +
            EconomicCapabilityConstant.CODE_FIN_CAPACITY_03 + "$")
    private String code;
    @NotBlank
    private String idCard;
    @NotBlank
    private String name;
    @NotBlank
    private String mobile;
}
